﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameLoop : MonoBehaviour {
    SceneController sceneController;
    // Use this for initialization
    private void Awake()
    {
        //Always exists in all scenes
        DontDestroyOnLoad(this.gameObject);
    }
    void Start () {
        sceneController = new SceneController();
        sceneController.SetState(new StartSceneState(sceneController));
	}
	
	// Update is called once per frame
	void Update () {
        sceneController.StateUpdate();
	}
}
